//默认值
const Device = "pc"; //设备类型 pc mobild
const Page_Type = "search"; //页面类型single\search\home\404\category
const Config = {
  header: {
    logo: "http://localhost:10038/wp-content/themes/red-line/vite/dist/img/logo.svg",
  },
  footer: {
    meat: "COPYRIGHT © 2022 THIN RED LINE INC. ALL RIGHTS RESERVED.",
  },
};
//网址
const Site = {
  ajaxurl: "http://localhost:10038/wp-admin/admin-ajax.php",
  home: "http://localhost:10038",
  theme: "http://localhost:10038/wp-content/themes/red-line",
};

//菜单
export const Menu = [
  {
    id: "5",
    menu: "首页",
    list: [
      {
        id: "1",
        title: "Hello world!",
        url: "http://localhost:10038/1.html",
        tag: "true",
      },
      {
        id: "14",
        title: "嵌入测试",
        url: "http://localhost:10038/14.html",
        tag: "",
      },
      {
        id: "2",
        title: "Sample Page简简单单",
        url: "http://localhost:10038/sample-page",
        tag: "",
      },
    ],
  },
  {
    id: "1",
    menu: "Hello world!",
    list: [
      {
        id: "10",
        title: "简单的测试下",
        url: "http://localhost:10038/10.html",
        tag: "true",
      },
    ],
  },
  {
    id: "37",
    menu: "测试",
    list: [
      {
        id: "46",
        title: "搜索页",
        url: "http://localhost:10038/?s=%E7%AE%80%E5%8D%95",
        tag: "",
      },
      {
        id: "39",
        title: "404页",
        url: "http://localhost:10038/asdfasdf",
        tag: "",
      },
      {
        id: "40",
        title: "密码页",
        url: "http://localhost:10038/%e5%af%86%e7%a0%81%e9%a1%b5",
        tag: "",
      },
      {
        id: "45",
        title: "私密内容",
        url: "http://localhost:10038/%e7%a7%81%e5%af%86%e5%86%85%e5%ae%b9",
        tag: "",
      },
    ],
  },
];
//搜索信息
const SearchMeat = {
  total_results: 6,
  current_page: 1,
  total_pages: 1,
  query: "简单",
};
//搜索内容
const SearchContent = [
  {
    id: 10,
    title: "简单的测试下",
    description: "5555",
    link: "http://localhost:10038/10.html",
    featured_image:
      "http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg",
  },
  {
    id: 2,
    title: "Sample Page-简简单单",
    description: "This is an example page. It’s different from a bl […]",
    link: "http://localhost:10038/sample-page",
    featured_image: false,
  },
  {
    id: 42,
    title: "私密：私密内容",
    description: "我是简单的私密内容",
    link: "http://localhost:10038/%e7%a7%81%e5%af%86%e5%86%85%e5%ae%b9",
    featured_image: false,
  },
  {
    id: 40,
    title: "密码保护：密码页",
    description: "我是简单的内容",
    link: "http://localhost:10038/%e5%af%86%e7%a0%81%e9%a1%b5",
    featured_image: false,
  },
  {
    id: 14,
    title: "嵌入测试",
    description: "简简单单的摘要",
    link: "http://localhost:10038/14.html",
    featured_image:
      "http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg",
  },
  {
    id: 1,
    title: "密码保护：Hello world!",
    description: "Welcome to WordPress. This is your first post. Edit or  […]",
    link: "http://localhost:10038/1.html",
    featured_image: false,
  },
];
//首页
const Home = {
  pc: {
    switch: "true",
    home_show: "744",
    slid: [
      {
        id: 1,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple-Watch-Ultra-Oceanic-Plus-hero.jpg.landing-gradient-large_2x-scaled.jpg",
        link: "https://www.baidu.com",
        type: "false",
      },
      {
        id: 2,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple_Shot-on-iPhone-14-models_iPhone-14-Pro-Max-with-the-Main-Camera-by-Xiaobei-Fuzhou_12192022-scaled.jpg",
        link: "https://www.baidus.com",
        type: "true",
      },
    ],
    recommend: [
      {
        id: 1,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple-heart-health-hero.jpg.landing-big_2x.jpg",
        link: "https://www.baidu.com",
        type: "false",
      },
      {
        id: 2,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple_iPad-is-transforming-retail-and-food-service-in-China_Staff-serving-customers-with-FLIPOS-on-iPad_01282023.jpg.landing-big_2x.jpg",
        link: "https://www.baidus.com",
        type: "true",
      },
      {
        id: 3,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple-Mclntosh-SEED-hero.jpg.landing-big_2x.jpg",
        link: "https://www.baidu.com",
        type: "false",
      },
      {
        id: 4,
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple-STEAM-Day-hero.jpg.landing-gradient-large_2x-scaled.jpg",
        link: "https://www.baidus.com",
        type: "true",
      },
    ],
    hot: [
      {
        id: 10,
        link: "http://localhost:10038/10.html",
        title: "简单的测试下",
        description: "简简单单的描述",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg",
      },
      {
        id: 1177,
        link: "http://localhost:10038/1177.html",
        title: "Markup: Image Alignment",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/soworthloving-wallpaper.jpg",
      },
      {
        id: 1153,
        link: "http://localhost:10038/1153.html",
        title: "Scheduled",
        description: "",
        featured_image: false,
      },
      {
        id: 1178,
        link: "http://localhost:10038/1178.html",
        title: "Markup: HTML Tags and Formatting",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple_iPad-is-transforming-retail-and-food-service-in-China_Staff-serving-customers-with-FLIPOS-on-iPad_01282023.jpg.landing-big_2x.jpg",
      },
    ],
    selected: [
      {
        id: 10,
        link: "http://localhost:10038/10.html",
        title: "简单的测试下",
        description: "简简单单的描述",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg",
      },
      {
        id: 1177,
        link: "http://localhost:10038/1177.html",
        title: "Markup: Image Alignment",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/soworthloving-wallpaper.jpg",
      },
      {
        id: 1153,
        link: "http://localhost:10038/1153.html",
        title: "Scheduled",
        description: "",
        featured_image: false,
      },
      {
        id: 1178,
        link: "http://localhost:10038/1178.html",
        title: "Markup: HTML Tags and Formatting",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple_iPad-is-transforming-retail-and-food-service-in-China_Staff-serving-customers-with-FLIPOS-on-iPad_01282023.jpg.landing-big_2x.jpg",
      },
      {
        id: 1016,
        link: "http://localhost:10038/1016.html",
        title: "Template: Featured Image (Vertical)",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/featured-image-vertical.jpg",
      },
      {
        id: 1011,
        link: "http://localhost:10038/1011.html",
        title: "Template: Featured Image (Horizontal)",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/featured-image-horizontal.jpg",
      },
      {
        id: 1148,
        link: "http://localhost:10038/1148.html",
        title: "Template: Comments",
        description: "",
        featured_image: false,
      },
    ],
    end: [
      {
        id: 1178,
        link: "http://localhost:10038/1178.html",
        title: "Markup: HTML Tags and Formatting",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/01/Apple_iPad-is-transforming-retail-and-food-service-in-China_Staff-serving-customers-with-FLIPOS-on-iPad_01282023.jpg.landing-big_2x.jpg",
      },
      {
        id: 1016,
        link: "http://localhost:10038/1016.html",
        title: "Template: Featured Image (Vertical)",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/featured-image-vertical.jpg",
      },
      {
        id: 1011,
        link: "http://localhost:10038/1011.html",
        title: "Template: Featured Image (Horizontal)",
        description: "",
        featured_image:
          "http://localhost:10038/wp-content/uploads/2013/03/featured-image-horizontal.jpg",
      },
      {
        id: 1148,
        link: "http://localhost:10038/1148.html",
        title: "Template: Comments",
        description: "",
        featured_image: false,
      },
    ],
  },
  mobile: SearchContent,
};

//文章内容
const Single = {
  content: {
    ID: 2,
    url: "http://localhost:10038/?page_id=2",
    post_author: "1",
    post_content:
      '<!-- wp:paragraph -->\n<p>This is an example page. It\'s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:quote -->\n<blockquote class="wp-block-quote"><p>Hi there! I\'m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin\' caught in the rain.)</p></blockquote>\n<!-- /wp:quote -->\n\n<!-- wp:paragraph -->\n<p>...or something like this:</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:quote -->\n<blockquote class="wp-block-quote"><p>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</p></blockquote>\n<!-- /wp:quote -->\n\n<!-- wp:paragraph -->\n<p>As a new WordPress user, you should go to <a href="http://localhost:10038/wp-admin/">your dashboard</a> to delete this page and create new pages for your content. Have fun!</p>\n<!-- /wp:paragraph -->',
    post_date: "2023-08-17 09:08:05",
    post_excerpt: "简简单单的描述",
    post_password: "",
    post_status: "publish",
    post_title: "Sample Page-简简单单",
    post_type: "page",
  },
  meat: {
    site: "666",
    switch: "true",
  },
};

//meat信息
const SingleMeat = {
  site: "666",
  switch: "true",
};

//分类信息
const Category = {
  meat: {
    id: 3,
    link: "http://localhost:10038/category/aciform",
    name: "aciform",
    description: "",
  },
  content: [
    {
      id: 1152,
      title: "Edge Case: Many Categories",
      description: "This post has many categories.",
      link: "http://localhost:10038/1152.html",
      featured_image: false,
    },
  ],
};
const Tag = {
  meat: {
    id: 67,
    link: "http://localhost:10038/tag/8bit",
    name: "8BIT",
    description: "Tags posts about 8BIT.",
  },
  content: [],
};

const Widgets = `<section id="block-7" class="widget widget_block">简简单单的文本，有趣的内容</section><section id="block-8" class="widget widget_block widget_media_image">
<figure class="wp-block-image size-full"><img decoding="async" loading="lazy" width="704" height="396" src="http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg" alt="" class="wp-image-25" srcset="http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631.jpg 704w, http://localhost:10038/wp-content/uploads/2023/08/6bd9a4256db0e4517edb099771ae83594b662631-300x169.jpg 300w" sizes="(max-width: 704px) 100vw, 704px" /></figure>
</section>`;

//整合输出
const dataLocal = {
  site: Site,
  menu: Menu,
  config: Config,
  type: {
    device: Device,
    page_type: Page_Type,
  },

  home: Home,
  single: Single,
  search: {
    meat: SearchMeat,
    content: SearchContent,
  },
  meat: SingleMeat,
  category: Category,
  tag: Tag,
  widgets: Widgets,
};
export default dataLocal;
